package com.example.collection.controller;


import com.example.collection.entity.Student;
import com.example.collection.mapper.StudentMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author can
 * @since 2022-12-16
 */
@RestController
@RequestMapping("/student")
public class StudentController {

    @Resource
    private StudentMapper studentMapper;

    @GetMapping("/test")
    public Student getStu(Integer sId){
        return studentMapper.stuWithTea(sId);
    }
}

